package com.yzd.learnjava.typeinfo.pets;

public class Individual {
	private static long counter ;
	private final long id = counter++;
	
	private String name;

	public Individual(String name) {
		this.name = name;
	}
	
	
	public Individual() {
		this.name = "DefaultName";
	}
	
	
	public String toString() {
		return "id : " + id + ", name : " + name;
	}
}
